/**
 * @标题：服务
 * @描述：描述一个可以返回此用户历史上的所有购书记录的服务
 * @author: 李东峻
*  @version V1.0, 2015/1/28
 */
package com.linkage.service.consumer;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linkage.pojo.commodity.Book;
import com.linkage.repository.consumer.PurchaseBookHistoryRepository;

@Service("ListPurchaseHistoryService")
public class ListPurchaseHistoryService {
	@Autowired
	private PurchaseBookHistoryRepository purchaseBookHistoryRepository;
	
	public List<Book> listPurchaseHistory(Integer userId){
		return this.purchaseBookHistoryRepository.selectPurchaseHistoryByUserId(userId);
	}

    
}
